package com.community.entity;

public class Announcement {
    private String id; // 公告ID
    private String title; // 公告标题
    private String content; // 公告内容
    private String createdAt; // 创建时间
    private String creatorName; // 创建人姓名

    public Announcement(String id, String title, String content, String createdAt, String creatorName) {
        this.id=id;
        this.title=title;
        this.content=content;
        this.createdAt=createdAt;
        this.creatorName=creatorName;
    }

    // Getter 和 Setter 方法
    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public String getCreatedAt() {
        return createdAt;
    }

    public void setCreatedAt(String createdAt) {
        this.createdAt = createdAt;
    }

    public String getCreatorName() {
        return creatorName;
    }

    public void setCreatorName(String creatorName) {
        this.creatorName = creatorName;
    }
}